import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import path from 'path';

export default defineConfig({
  plugins: [vue()],
  resolve: {
    alias: {
      '@': path.resolve(__dirname, 'src')
    }
  },
  build: {
    outDir: '../public',
    emptyOutDir: true,
    sourcemap: false
  },
  css: {
    preprocessorOptions: {
      scss: {
        // 不需要在这里添加additionalData，因为我们已经在main.scss中使用了@use
      }
    }
  }
}); 